package io.github.slideconflictdemo;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

public class MainActivity extends AppCompatActivity {


    @BindView(R.id.btn_demo1)
    Button btnDemo1;
    @BindView(R.id.btn_demo2)
    Button btnDemo2;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        ButterKnife.bind(this);
    }


    @OnClick({R.id.btn_demo1, R.id.btn_demo2})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.btn_demo1:
                startActivity(new Intent(MainActivity.this,Demo1Activity.class));
                break;
            case R.id.btn_demo2:
                startActivity(new Intent(MainActivity.this,Demo2Activity.class));
                break;
        }
    }
}
